/**
 * Created by PC on 2018/12/11.
 */
$().ready(function () {
// 在键盘按下并释放及提交后验证提交表单
    // 登录和产品添加
    $("#my_form").validate({
        rules: {
            sum_price: {
                required: true,
                maxlength: 8,
                number: true
            }
        },
        messages: {
            sum_price: {
                required: "请输入佣金",
                maxlength: "佣金数值最长不超过8个字符",
                number:"只能输入有效数字"
            }
        }
    })
});